//
// Created by shen on 2025/3/6.
//

#ifndef VIDEOEDIT_VIDEORENDER_H
#define VIDEOEDIT_VIDEORENDER_H

#include "ImageDef.h"

#define VIDEO_RENDER_OPENGL             0
#define VIDEO_RENDER_ANWINDOW           1
#define VIDEO_RENDER_3D_VR              2
class VideoRender{
public:
    explicit VideoRender(int mRenderType) : m_RenderType(mRenderType) {}

    virtual ~VideoRender() {

    }
    virtual void Init(int videoWidth, int videoHeight, int *dstSize) = 0;
    virtual void RenderVideoFrame(NativeImage *pImage) = 0;
    virtual void UnInit() = 0;

    int GetRenderType() {
        return m_RenderType;
    }
private:
    int m_RenderType = VIDEO_RENDER_ANWINDOW;

};
#endif //VIDEOEDIT_VIDEORENDER_H
